import Layout from '@/layout'
export default {
  path: '/employee',
  name: 'employee',
  component: Layout,
  children: [{
    path: '',
    name: 'employeeCom',
    component: () => import('@/views/employee/index'),
    meta: { title: '员工管理', icon: 'dashboard' }
  }, {
    //如果这里写 /aaa  就不会再路由地址在前面加/employee
    // 写成  aaa  才会变成  /employee/aaa的模式
    path: 'detail/:id?', // 员工详情的地址
    component: () => import('@/views/employee/detail.vue'),
    hidden: true, // 表示隐藏在左侧菜单
    meta: {
      title: '员工详情' // 显示在导航的文本
      }
    }]
}